﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Diagnostics;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Flag
{
    public partial class MainPage : PhoneApplicationPage
    {
        Player player;
        string pass;

        public MainPage()
        {
            InitializeComponent();

            player = new Player();
        }

        private void buttonMenu_Click(object sender, EventArgs e)
        {


            if (username.Text.Length >= 6 && password.Password.Length >= 6)
            {
                //  if (pass.CompareTo(password.Password.ToString()) == 0) 
                NavigationService.Navigate(new Uri("/menu.xaml?User=" + username.Text, UriKind.RelativeOrAbsolute));
                //    else MessageBox.Show("Wrong Password");
            }
            else MessageBox.Show("Username or Password too short");

        }
    }
}